﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Xiaov.SmartWeb.Model.ActiveRecord;
using Xiaov.SmartWeb.Infrastructure.ExtMethod;

namespace Xiaov.SmartWeb.Application.PluginSrc.StatisticalSystem.ReportDesign.Json
{
    public partial class DeptFilter : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //只获取4位编码长度以下的单位
            Response.Clear();
            Xiaov.SmartWeb.Model.ActiveRecord.DWBMB model = new DWBMB();
            IList<DWBMB> list = model.FindAllByCache().Where(s => s.DWBM.Length <= 6).OrderBy(s=>s.XSSX).ToList();
            Response.Write(list.ToJsonForComboGrid());
            Response.End();
        }
    }
}